<template>
  <div class="app-container">
    <el-tabs v-model="activeTab" @tab-click="handleClick">
      <el-tab-pane label="积分支入" name="support">
        <IntegralSupport v-if="activeTab === 'support'" />
      </el-tab-pane>
      <el-tab-pane label="积分支出" name="expenditure">
        <IntegralExpenditure v-if="activeTab === 'expenditure'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import IntegralSupport from '@/views/integral/integral-settlement/components/integralSupport'
import IntegralExpenditure from '@/views/integral/integral-settlement/components/integralExpenditure'
export default {
  name: 'DataOverviewDetail',
  components: {
    IntegralSupport,
    IntegralExpenditure
  },
  data() {
    return {
      activeTab: 'support'
    }
  },
  created() {},
  methods: {
    handleClick({ name }) {
      this.activeTab = name
    }
  }
}
</script>

<style lang="scss" scoped>
/deep/.el-tabs__header {
  padding: 10px;
  background-color: #ffffff;
}
</style>
